import { createApp,ref } from "./vueesm.js"
createApp({
    //组合式api
    setup() {
        let show=ref(false)
        let students=ref([
            {id:1,name:"zs",age:18},
            {id:2,name:"las",age:19},
            {id:3,name:"dw",age:20}
        ])
        function changeStu(){
            //this.students
            students.value=[
                {id:4,name:"sd",age:35}
            ]
        }
        return{
            show,
            students,
            changeStu
        }
    }
}).mount("#app")